package com.itheima.io.file.demo05;

import java.io.File;
import java.io.IOException;

public class FileDemo05 {

    public static void main(String[] args) throws IOException {

        File file = new File("itheima-io-file\\a.text");
        System.out.println(file.createNewFile());

        File file1 = new File("itheima-io-file\\a");
        System.out.println(file1.mkdir());

        File file2 = new File("itheima-io-file\\b\\a.text");
        System.out.println(file2.mkdirs());

        System.out.println(file.delete());
        System.out.println(file1.delete());
        System.out.println(file2.delete());
        System.out.println(file2.delete());



    }
}
